package lt.f2g;

import java.util.List;

import lt.f2g.base.BasePage;
import lt.f2g.domain.UserAccount;
import lt.f2g.services.Test;

import org.apache.wicket.request.mapper.parameter.PageParameters;
import org.apache.wicket.spring.injection.annot.SpringBean;

public class HomePage extends BasePage {
    
    @SpringBean
    private Test test;
    
    public HomePage(final PageParameters parameters) {
	super(parameters);
	
//	add(new Label("version", getApplication().getFrameworkSettings().getVersion()));
	List<UserAccount> objects = test.getThings();
	System.out.println(objects.get(0).getAccountName());
    }
  
    public void setTest(Test test) {
        this.test = test;
    }
}
